#include<stdio.h>
#include<math.h>
#define N 100
struct 
{
	float h,w,x;
}P[N];
int main()
{
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%f %f",&P[i].h,&P[i].w);
		P[i].x=(P[i].h-100)*0.9*2;
		if(fabs(P[i].w-P[i].x)<P[i].x*0.1)
		printf("You are wan mei!\n");
		if(P[i].w<=(P[i].x-P[i].x*0.1))
		printf("You are tai shou le!\n");
		if(P[i].w>=(P[i].x+P[i].x*0.1))
		printf("You are tai pang le!\n");
	}
	return 0;
}
